package InterfaceHomewordTest2;

public class Test {
    public static void main(String[] args){
        //顾客点要吃中式西红柿炒蛋
        FoodMenu fm1 = new ChinaCooker();
        FoodMenu fm2 = new AmericaCooker();
        Customer c1 = new Customer(fm1);
        c1.getFm().xiHongShi();
        //顾客吃西式蛋炒饭
        c1.setFm(fm2);
        c1.getFm().danChaoFan();
    }
}
